import axios from '@/libs/request'

export const insert = (data) => {
  return axios.request({
    url: '/api/ac/cme2/wasteWaterService/insert',
    data: data,
    type: 'post'
  })
}

export const findPageList = (pageInfo) => {
  return axios.request({
    url: '/api/as/cme2/wastewater/findPageList',
    data: pageInfo,
    type: 'get'
  })
}

export const update = (data) => {
  return axios.request({
    url: '/api/as/cme2/wastewater/update',
    data: data,
    type: 'post'
  })
}

export const deleteForm = (data) => {
  return axios.request({
    url: '/api/ac/cme2/wasteWaterService/delete',
    data: data,
    type: 'post'
  })
}
export const getHospitalData = () => {
  return axios.request({
    url: '/api/ac/cme2/hospitalService/findList',
    type: 'get'
  })
}
export const updateDeptCommitStatus = (data) => {
  return axios.request({
    url: '/api/ac/cme2/wasteWaterService/updateDeptCommitStatus',
    data: data,
    type: 'post'
  })
}
export const updateDeptRejectStatus = (data) => {
  return axios.request({
    url: '/api/ac/cme2/wasteWaterService/updateDeptRejectStatus',
    data: data,
    type: 'post'
  })
}
export const findList = (data) => {
  return axios.request({
    url: '/api/as/cme2/wastewater/findList',
    data: data,
    type: 'get'
  })
}
export const updateDeptAuditStatus = (data) => {
  return axios.request({
    url: '/api/ac/cme2/wasteWaterService/updateDeptAuditStatus',
    data: data,
    type: 'post'
  })
}
export const updateLeaderAuditStatus = (data) => {
  return axios.request({
    url: '/api/ac/cme2/wasteWaterService/updateLeaderAuditStatus',
    data: data,
    type: 'post'
  })
}
export const getDictInfoList = () => {
  return axios.request({
    url: '/api/as/sc/dict/getDictInfoAreaList?type=hosp_type',
    type: 'get'
  })
}
